package com.meichis.yndms.vm;

import androidx.lifecycle.MutableLiveData;

import com.meichis.yndms.model.Staff;
import com.meichis.yndms.repository.manager.StaffListManager;

import java.util.List;

/**
 * @author xmy
 * @title
 * @remake
 * @create 2021-05-08 15:26
 */
public class StaffListVM extends MyViewModel {
    private MutableLiveData<List<Staff>> staffList;

    public MutableLiveData<List<Staff>> getStaffList() {
        if (staffList == null) {
            staffList = new MutableLiveData<>();
        }
        return staffList;
    }

    public void GetStaffList() {
        StaffListManager.getInstance().GetStaffList(getShowDialog(), getUserInfo().getValue().getOrgId(), getStaffList());
    }

}
